<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="__CSS__/ex/common.css">
    <link rel="stylesheet" href="__CSS__/ex/login.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.5.0/css/swiper.min.css">
    <title>WESTGOLDB.EXC</title>
    <script src="__JS__/ios-web-app.js"></script>
    <link rel="stylesheet" href="/Public/Wap/scan/common.css" type="text/css" charset="utf-8" />
    <script type="text/javascript" src="/Public/Wap/scan/common.js"></script>
    <style>
        body{
            font-size: .25rem;
        }
    </style>
</head>

<body style="padding-top: 38px">
<div class="home_index">

    <section class="home_part3">
        <div class="yy_banner" >
                    <div class="swiper-container">
                        <div class="swiper-wrapper">
                            <volist name="lunbo" id="lo">
                                <div class="swiper-slide"><img src="{$lo.logo}" alt=""></div>

                            </volist>

                            <!--<div class="swiper-slide"><img src="__IMG__/ex/banner_5.png" alt=""></div>-->
                            <!--<div class="swiper-slide"><img src="__IMG__/ex/x1.png" alt=""></div>-->
                            <!--<div class="swiper-slide"><img src="__IMG__/ex/x2.png" alt=""></div>-->
                            <!--<div class="swiper-slide"><img src="__IMG__/ex/x3.png" alt=""></div>-->
                            <!--<div class="swiper-slide"><img src="__IMG__/ex/x4.png" alt=""></div>-->
                        </div>
                        <div class="swiper-pagination"></div>
                    </div>
        </div>
        <!--<div class="yy_banner" >-->
            <!--<img src="__IMG__/ex/yy_banner.png" alt="">-->
        <!--</div>-->

        <!--<div class="lun_box" onclick="notice()">-->
        <div class="lun_box" >
            <div>
                <img src="__IMG__/ex/news_lun.png" alt="">
                <!--<p>让我们相约2021,富足2021</p>-->
                <p><a href="{:U('User/noticedetail',array('id'=>$notice['id']))}">{$notice['title']}</a></p>
            </div>
            <div>
                <a href="{:U('User/notice')}"> <img src="__IMG__/ex/kuozhan.png" alt=""></a>
            </div>
        </div>
        <div class="nav_box">
<!--            <div class="nav_title">-->
<!--                <span>WESTGOLDB.EXC</span>-->
<!--                <a href="{:U('User/notice')}">-->
<!--                    <img src="__IMG__/ex/remind.png" alt=""  style="float: right;width:.4rem">-->
<!--                </a>-->

<!--            </div>-->
            <div class="nav_btn">
                <div>
                    <a href="javascript:void (0)" class="kongge" onclick="openBarcodeCustom()">
                        <img src="__IMG__/ex/scanr.png" alt="">
                        <br>
                        <span>扫码</span>
                    </a>
                </div>
                <div>
                    <!--<a href='{:U("Property/zhuanshou")}'>-->
                    <a href='{:U("Property/charge_reply")}'>
                        <img src="__IMG__/ex/shoukuanr.png" alt="">
                        <br>
                        <span>充币</span>
                    </a>
                </div>
                <div>
                    <a href='{:U("Account/withdraw")}'>
                        <img src="__IMG__/ex/transfferr.png" alt="">
                        <br>
                        <span>转账</span>
                    </a>
                </div>

                <div>
                    <a href='{:U("duihuan/index")}'>
                        <img src="__IMG__/ex/shanduir.png" alt="">
                        <br>
                        <span>闪兑</span>
                    </a>
                </div>
            </div>
        </div>
        <style>
            .swiper-container{
                margin: .3rem .3rem;
            }
        </style>
    </section>
    <section class="home">
        <!--            <div class="home_part1">-->
        <!--                &lt;!&ndash;<p style="text-align: left;color: #fff;margin-left: .2rem;margin-top: .2rem">钱包名称：{$data.wallet_name}</p>&ndash;&gt;-->
        <!--                <h5>总资产</h5>-->
        <!--                <h1>EXUU: <span class="all_exuu">{$data.all_exuu}</span> USDT: <span class="all_usdt">{$data.all_usdt}</span></h1>-->
        <!--                <div>-->
        <!--                    <ul>-->
        <!--                        <li>-->
        <!--                            <p>可用资产</p>-->
        <!--                            <p>USDT: <span class="usdt">{$data.z8}</span></p>-->
        <!--                            <p>EXUU: <span class="exuu">{$data.z1}</span></p>-->

        <!--                        </li>-->
        <!--                        <li>-->
        <!--                            <p>冻结资产</p>-->
        <!--                            <p>USDT:{$data.frozen_z8}</p>-->
        <!--                            <p>EXUU:{$data.frozen_z1}</p>-->
        <!--                        </li>-->
        <!--                    </ul>-->
        <!--                </div>-->
        <!--            </div>-->
        <!--            <div class="yy_tit">-->
        <!--                <div class="line2"></div>-->
        <!--                <h5>公告</h5>-->
        <!--                &lt;!&ndash;<p>5月31号提币成功</p>&ndash;&gt;-->
        <!--                <a href="{:U('user/noticedetail',array('id'=>$news['id']))}"><p>{$news.title}</p></a>-->
        <!--            </div>-->
    </section>

    <div class="licai_box" onclick="licai()">
        <div>
            <img src="__IMG__/ex/licair.png" alt="">
            <div style="line-height:.4rem">
                <h3 style="font-weight: bold;color: #000;text-align: left">快捷划转</h3>
                <p style="font-size: 13px;color: #a9a9a9">支持USDT、DACM等</p>
            </div>
        </div>

        <div>
            <img src="__IMG__/ex/moremore.png" alt="" style="width: .4rem">
        </div>

    </div>

    <style>
        .home_part1 h5{
            /*margin-top: 0;*/
        }
        .line2,h5{
            flex-shrink: 0;
        }
        .yy_tit p{
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            width: 54%;
        }
    </style>
    <section>
        <ul class="home_part2">
            <a id="register" href='javascript:void (0)'>
                <li>
                    <img src="__IMG__/ex/chuangjian.png" alt="">
                    <br>
                    <p>创建</p>
                </li>
            </a>

            <a id="sign" href="javascript:void (0)">
                <li>
                    <img src="__IMG__/ex/choujiang1.png" alt="">
                    <br>
                    <p>签到</p>
                </li>
            </a>


            <if condition="$status eq 1">
                <a href="{:U('Property/vipsuccess')}">
                    <li>
                        <img src="__IMG__/ex/guojiapitchon.png" alt="">
                        <br>
                        <!--<p>异国代购</p>-->
                        <p>VIP用户</p>
                    </li>
                </a>
                <else/>
                <a href="{:U('Property/agent')}">
                    <li>
                        <img src="__IMG__/ex/guojiapitchon.png" alt="">
                        <br>
                        <!--<p>异国代购</p>-->
                        <p>申请VIP</p>
                    </li>
                </a>
            </if>

            <a href='{:U("Property/wallet")}'>
                <li>
                    <img src="__IMG__/ex/fuwu.png" alt="">
                    <p>服务</p>
                </li>
            </a>

            <!--                <a href='{:U("Property/zhuanshou")}'>-->
            <!--                    <li>-->
            <!--                        <img src="__IMG__/ex/outgoing-new1.png" alt="">-->
            <!--                        <p>充币</p>-->
            <!--                    </li>-->
            <!--                </a>-->
            <!--                <a href='{:U("Property/zhuanzhang")}'>-->
            <!--                    <li>-->
            <!--                        <img src="__IMG__/ex/outgoing-2-new.png" alt="">-->
            <!--                        <p>提币</p>-->
            <!--                    </li>-->
            <!--                </a>-->
            <!--                <a href='{:U("duihuan/index")}'>-->

            <!--                    <li>-->
            <!--                        <img src="__IMG__/ex/zhuanzhang-new.png" alt="">-->
            <!--                        <p>闪兑</p>-->
            <!--                    </li>-->
            <!--                </a>-->
            <!--                <a href='{:U("Property/transfer")}'>-->
            <!--                    <li>-->
            <!--                        <img src="__IMG__/ex/huzhuannew.png" alt="">-->
            <!--                        <p>互转</p>-->
            <!--                    </li>-->
            <!--                </a>-->
        </ul>
    </section>
    <section>
        <ul class="home_part2">

            <a href="{:U('duihuan/exchange')}" >

                <li>
                    <div><img src="__IMG__/ex/duihuanlv.png" alt=""></div>
                    <p>兑换率</p>
                </li>
            </a>

            <a onclick="wu()">
                <li>
                    <div><img src="__IMG__/ex/dacmkuangqu.png" alt=""></div>
                    <p>DACM专区</p>
                </li>
            </a>

            <a href="{:U('Discover/shopping_stock')}" >
                <li>
                    <div><img src="__IMG__/ex/shopzhuanqu.png" alt=""></div>
                    <p>SHOP专区</p>
                </li>
            </a>
            <a href="{:U('Discover/stock')}" >
                <li>
                    <div><img src="__IMG__/ex/CESgushu.png" alt=""></div>
                    <p>CES股数</p>
                </li>
            </a>
<!--            <a href='{:U("duihuan/index")}'>-->

<!--                <li>-->
<!--                    <img src="__IMG__/ex/zhuanzhang-new.png" alt="">-->
<!--                    <p>闪兑</p>-->
<!--                </li>-->
<!--            </a>-->
<!--            <a href='{:U("Finance/live")}'>-->
<!--                <li>-->
<!--                    <img src="__IMG__/ex/licai-new.png" alt="">-->
<!--                    <br>-->
<!--                    <p>理财</p>-->
<!--                </li>-->
<!--            </a>-->
<!--            &lt;!&ndash;<a href='{:U("duihuan/transfers")}'>&ndash;&gt;-->
<!--            <a>-->
<!--                <li>-->
<!--                    <img src="__IMG__/ex/tixian-new.png" alt="">-->
<!--                    <p>兑换</p>-->
<!--                </li>-->
<!--            </a>-->
<!--            <a href='{:U("duihuan/exchange")}'>-->

<!--                <li>-->
<!--                    <img src="__IMG__/ex/huzhuannew.png" alt="">-->
<!--                    <p>汇率</p>-->
<!--                </li>-->
<!--            </a>-->
        </ul>
        <!--            <div class="yy_lists">-->
        <!--                <ul>-->
        <!--                    <a href='{:U("index/choujiang")}'>-->
        <!--                        <li>-->
        <!--                            &lt;!&ndash;<div><img src="__IMG__/ex/choujiang.png" alt=""></div>&ndash;&gt;-->
        <!--                            <div><img src="__IMG__/ex/qiandao-new.png" alt=""></div>-->
        <!--                            <p>签到</p>-->
        <!--                        </li>-->
        <!--                    </a>-->
        <!--                    <a href="{:U('Property/touzi')}">-->
        <!--                        <li>-->
        <!--                            <div><img src="__IMG__/ex/licai-new.png" alt=""></div>-->
        <!--                            <p>存币理财</p>-->
        <!--                        </li>-->
        <!--                    </a>-->
        <!--                    <a href="{:U('Property/agent')}">-->
        <!--                        <li>-->
        <!--                            <div><img src="__IMG__/ex/tixian-new.png" alt=""></div>-->
        <!--                            <p>申请节点</p>-->
        <!--                        </li>-->
        <!--                    </a>-->
        <!--                    &lt;!&ndash;<a href='/index.php/Property/jiedian.html'>&ndash;&gt;-->
        <!--                        &lt;!&ndash;<li>&ndash;&gt;-->
        <!--                            &lt;!&ndash;<div><img src="__IMG__/ex/lianghua.png" alt=""></div>&ndash;&gt;-->
        <!--                            &lt;!&ndash;<p>节点</p>&ndash;&gt;-->
        <!--                        &lt;!&ndash;</li>&ndash;&gt;-->
        <!--                    &lt;!&ndash;</a>&ndash;&gt;-->
        <!--                </ul>-->
        <!--            </div>-->
    </section>
    <section style="margin-bottom: 2rem;">
        <ul class="home_part2">

            <a href="" onclick="wu()">
                <li>
                    <div><img src="__IMG__/ex/dichan.png" alt=""></div>
                    <p>地产专区</p>
                </li>
            </a>

            <a href="" onclick="wu()">
                <li>
                    <div><img src="__IMG__/ex/youxi.png" alt=""></div>
                    <p>游戏娱乐</p>
                </li>
            </a>

            <a href="" onclick="wu()">
                <li>
                    <div><img src="__IMG__/ex/lvyoudujia.png" alt=""></div>
                    <p>幸福之旅</p>
                </li>
            </a>
            <a href="{:U('Discover/college')}">
                <li>
                    <div><img src="__IMG__/ex/xueyuanpeizhi.png" alt=""></div>
                    <p>财商学院</p>
                </li>
            </a>
        </ul>
    </section>
    <input type="hidden" id="user_id" value="{$user_id}">
    <style>
        .swiper-container-horizontal>.swiper-pagination-bullets{
            bottom: 0;
        }
    </style>
</div>
<footer class="footer">
    <ul>
        <li>
            <a href="{:U('Index/index')}">
                <div>
                    <img src="__IMG__/ex/zn_17.png" alt="">
                </div>
                <p class="active">应用</p>
            </a>
        </li>
        <li>
            <a href="{:U('Hangqing/index')}">
                <div><img src="__IMG__/ex/zn_20.png" alt=""></div>
                <p>行情</p>
            </a>
        </li>
<!--        <li>-->
<!--            <a href="{:U('Discover/index')}">-->
<!--                <div><img src="__IMG__/ex/zn_22.png" alt=""></div>-->
<!--                <p>应用</p>-->
<!--            </a>-->
<!--        </li>-->
        <li>
            <a href="{:U('User/index')}">
                <div><img src="__IMG__/ex/zn_25.png" alt=""></div>
                <p>我的</p>
            </a>
        </li>
    </ul>
</footer>
<script src="__COMMON__/js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/Public/lib/layer/layer.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.5.0/js/swiper.min.js"></script>
<script src="//g.yimenyun.ltd/cdn/jsbridge-mini.js"></script>
<script>

    function wu() {
        alert('暂未开放');
    }
    function licai(){
        window.location.href = '{:U("Finance/live")}'
    }

    function notice(){
        window.location.href = ' {:U("User/notice")}'
    }

    var swiper = new Swiper('.swiper-container',{
        autoplay: true,
        loop: true,
        pagination: {
            el: '.swiper-pagination',
        },
    });
    $("#register").click(function () {
        if ($("#user_id").val()==''){
            window.location.href="{:U('Index/index_bak')}"
        } else {
            layer.msg('您已经登录了')
        }
    })

    // $(".kongge").on('click', function () {
    //     jsBridge.scan({
    //         needResult: true, //默认为false，扫描结果由App处理；true则直接返回扫描结果
    //     }, function(code) {
    //         if (code) {
    //             window.location.href="{:U('Property/zhuanzhang')}?param="+code
    //         } else {
    //             alert("扫码失败或取消了扫码");
    //         }
    //     });

    //     //直接启动扫码，扫码结果由 App 处理（如果是链接则打开链接，否则显示扫码内容）
    //     // jsBridge.scan();
    // })

    $("#sign").click(function () {
        var index;
        $.ajax({
            type:"post",
            dataType:"json",
            data:{},
            url:"{:U('Discover/sign')}",
            beforeSend:function(){
                index =layer.load(0,{
                    shade: [0.4, '#393D49'],
                });
            },
            success:function (data) {

                if (data.code==0){
                    layer.msg(data.msg,{time:2000},function () {
                        layer.close(index)
                        window.location.reload()
                    })

                } else {
                    layer.msg(data.msg,{time:2000},function () {
                        layer.close(index)
                    })
                    return false
                }
            }
        })
    })

    // $(document).ready(function () {
    //     console.log(23);
    //     $.ajax({
    //         type:"post",
    //         dataType:"json",
    //         url:"{:U('property/get_yue')}",
    //         success:function (data) {
    //             console.log(data);
    //             $(".all_exuu").val(data.all_exuu);
    //             $(".all_usdt").val(data.all_usdt);
    //             $(".usdt").val(data.z8);
    //             $(".exuu").val(data.z1);
    //
    //         }
    //     })
    // })
</script>
<script type="text/javascript">

        //系统栏颜色
        if(window.plus){
            plus.navigator.setStatusBarBackground("#009DE2");
        }else{
            document.addEventListener("plusready",function(){
                plus.navigator.setStatusBarBackground("#009DE2");
            },false);
        }

        // 打开自定义扫描界面
        function openBarcodeCustom() {
            createWithoutTitle('scan.html', {
                titleNView: {
                    type: 'float',
                    backgroundColor: '#009DE2',
                    titleText: '扫一扫',
                    titleColor: '#FFFFFF',
                    autoBackButton: true
                }
            });
        }

        //扫描成功后回调
        function scaned(t, r, f){
            alert("二维码类型："+t+"\n扫描结果："+r+"\n文件路径："+f);
        }
    </script>
</body>

</html>